/*
 * @Descripttion: 
 * @version: 
 * @Author: hzx
 * @Date: 2021-03-05 14:42:20
 * @LastEditors: hzx
 * @LastEditTime: 2021-03-26 21:21:49
 */
import { createRouter, createWebHistory } from 'vue-router'
const routes = [
    {
        path: '/',
        name: 'Login',
        component: () => import(/* webpackChunkName: "Home" */ '@/views/Login.vue'),
    },
    {
        path: '/home',
        name: 'Home',
        component: () => import(/* webpackChunkName: "Home" */ '@/views/Home.vue'),
        children: [
            {
                path: '/stuList',
                name: 'StuList',
                component: () => import(/* webpackChunkName: "StuList" */ '@/views/StudentList.vue'),
            },
            {
                path: '/teaList',
                name: 'TeaList',
                component: () => import(/* webpackChunkName: "TeaList" */ '@/views/TeacherList.vue'),
            },
            {
                path: '/course',
                name: 'Course',
                component: () => import(/* webpackChunkName: "Course" */ '@/views/Course.vue'),
            },
        ]
    },
    {
        path: '/stuhome',
        name: 'StuHome',
        component: () => import(/* webpackChunkName: "StuHome" */ '@/views/student/Home.vue'),
        children: [
            {
                path: '/info',
                name: 'Info',
                component: () => import(/* webpackChunkName: "Info" */ '@/views/student/InfoStu.vue')
            },
            {
                path: '/coursesel',
                name: 'CourseSel',
                component: () => import(/* webpackChunkName: "CourseSel" */ '@/views/student/CourseSel.vue')
            },
            {
                path: '/coursegrade',
                name: 'CourseGrade',
                component: () => import(/* webpackChunkName: "CourseGrade" */ '@/views/student/CourseGrade.vue')
            }
        ]
    }
]

const router = createRouter({
    history: createWebHistory(process.env.BASE_URL),
    routes
})

export default router
